package entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * The type Stock.
 */
public class Stock extends Common implements Serializable {
    private static final long serialVersionUID = 542453147236691630L;
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 商品id
     */
    @TableField(value = "productId")
    private String productId;
    /**
     * 仓库id
     */
    @TableField(value = "storehouseId")
    private String storehouseId;
    /**
     * 数量
     */
    private Integer quantity;

    private Integer state;

    /**
     * Gets state.
     *
     * @return the state
     */
    public Integer getState() {
        return state;
    }

    /**
     * Sets state.
     *
     * @param state the state
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * Gets status.
     *
     * @return the status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * Sets status.
     *
     * @param status the status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * To string string.
     *
     * @return the string
     */

    private Integer status;


    private String machining;

    @Override
    public String toString() {
        return "Stock{" +
                "id='" + id + '\'' +
                ", productId='" + productId + '\'' +
                ", storehouseId='" + storehouseId + '\'' +
                ", quantity=" + quantity +
                ", state=" + state +
                ", status=" + status +
                ", machining='" + machining + '\'' +
                '}';
    }

    /**
     * Gets machining.
     *
     * @return the machining
     */
    public String getMachining() {
        return machining;
    }

    /**
     * Sets machining.
     *
     * @param machining the machining
     */
    public void setMachining(String machining) {
        this.machining = machining;
    }

    /**
     * Gets serial version uid.
     *
     * @return the serial version uid
     * @author overlook
     * @date 2022 -04-16 20:32:28
     */
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    /**
     * Gets id.
     *
     * @return the id
     * @author overlook
     * @date 2022 -04-16 20:32:28
     */
    public String getId() {
        return id;
    }

    /**
     * Sets id.
     *
     * @param id the id
     * @author overlook
     * @date 2022 -04-16 20:32:28
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * Gets product id.
     *
     * @return the product id
     * @author overlook
     * @date 2022 -04-16 20:32:29
     */
    public String getProductId() {
        return productId;
    }

    /**
     * Sets product id.
     *
     * @param productId the product id
     * @author overlook
     * @date 2022 -04-16 20:32:29
     */
    public void setProductId(String productId) {
        this.productId = productId;
    }

    /**
     * Gets storehouse id.
     *
     * @return the storehouse id
     * @author overlook
     * @date 2022 -04-16 20:32:29
     */
    public String getStorehouseId() {
        return storehouseId;
    }

    /**
     * Sets storehouse id.
     *
     * @param storehouseId the storehouse id
     * @author overlook
     * @date 2022 -04-16 20:32:29
     */
    public void setStorehouseId(String storehouseId) {
        this.storehouseId = storehouseId;
    }

    /**
     * Gets quantity.
     *
     * @return the quantity
     * @author overlook
     * @date 2022 -04-16 20:32:29
     */
    public Integer getQuantity() {
        return quantity;
    }

    /**
     * Sets quantity.
     *
     * @param quantity the quantity
     * @author overlook
     * @date 2022 -04-16 20:32:29
     */
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    /**
     * Instantiates a new Stock.
     *
     * @param id           the id
     * @param productId    the product id
     * @param storehouseId the storehouse id
     * @param quantity     the quantity
     * @author overlook
     * @date 2022 -04-16 20:32:29
     */
    public Stock(String id, String productId, String storehouseId, Integer quantity) {
        this.id = id;
        this.productId = productId;
        this.storehouseId = storehouseId;
        this.quantity = quantity;
    }

    /**
     * Instantiates a new Stock.
     *
     * @author overlook
     * @date 2022 -04-16 20:32:29
     */
    public Stock() {
    }
}

